package org.lionsoul.ip2region2;

public class IndexBlock
{
  private static int LENGTH = 12;
  private long startIp;
  private long endIp;
  private int dataPtr;
  private int dataLen;

  public IndexBlock(long paramLong1, long paramLong2, int paramInt1, int paramInt2)
  {
    this.startIp = paramLong1;
    this.endIp = paramLong2;
    this.dataPtr = paramInt1;
    this.dataLen = paramInt2;
  }

  public long getStartIp()
  {
    return this.startIp;
  }

  public IndexBlock setStartIp(long paramLong)
  {
    this.startIp = paramLong;
    return this;
  }

  public long getEndIp()
  {
    return this.endIp;
  }

  public IndexBlock setEndIp(long paramLong)
  {
    this.endIp = paramLong;
    return this;
  }

  public int getDataPtr()
  {
    return this.dataPtr;
  }

  public IndexBlock setDataPtr(int paramInt)
  {
    this.dataPtr = paramInt;
    return this;
  }

  public int getDataLen()
  {
    return this.dataLen;
  }

  public IndexBlock setDataLen(int paramInt)
  {
    this.dataLen = paramInt;
    return this;
  }

  public static int getIndexBlockLength()
  {
    return LENGTH;
  }

  public byte[] getBytes()
  {
    byte[] arrayOfByte = new byte[12];
    Util.writeIntLong(arrayOfByte, 0, this.startIp);
    Util.writeIntLong(arrayOfByte, 4, this.endIp);
    long l = this.dataPtr | this.dataLen << 24 & 0xFF000000;
    Util.writeIntLong(arrayOfByte, 8, l);
    return arrayOfByte;
  }
}

/* Location:           C:\Users\zhangliang.sm\Desktop\dbMaker-1.2.2.jar
 * Qualified Name:     org.lionsoul.ip2region.IndexBlock
 * JD-Core Version:    0.6.2
 */